package com.tallysystem.dao;

import java.util.List;

import com.tallysystem.entity.Tallys;

public interface TallysDao {
	
	//查询所有
	List<Tallys> getAllTallys();
	//查寻功能
	public Tallys findBytid(int tid);
	//模糊查询	
	List<Tallys> findByPageAndFuzzy(int pos,int page,StringBuffer condition);
	
	//添加
	void addtallys(Tallys tallys);
	
	//删除
	int deletetallys(int tid);
	
	//修改
	int updatetallys(Tallys tallys);
	
	//分页
	List<Tallys> queryPage(int pos,int page);
	int count();
}
